<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Document</title>
    <style>
        *{
            margin:0;
            padding:0;
        }
        #banner{
            width: 9.44rem;
            height: 3.493rem;
            margin: 1.333rem auto 0;
            background: #135;
        }
    </style>
</head>
<body>
    <div id="banner"></div>

    <script>
        function adapter(){
            let size = document.documentElement.clientWidth / 10;
            document.documentElement.style.fontSize = size + 'px';
        }
        window.onresize = adapter;
        adapter();
    </script>
</body>
</html>